home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970104-19970326 / 000456_news@columbia.edu _Fri Mar 21 17:35:08 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id RAA17777
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 21 Mar 1997 17:35:08 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id RAA02320
  7.     for kermit.misc@watsun; Fri, 21 Mar 1997 17:35:07 -0500 (EST)
  8. Path: news.columbia.edu!panix!news-xfer.netaxs.com!news.mathworks.com!news.pbi.net!samba.rahul.net!rahul.net!a2i!jadestar.a2i!jadestar
  9. From: Jim Dennis <jadestar@rahul.net>
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Command line execution
  12. Date: 21 Mar 1997 21:36:00 GMT
  13. Organization: a2i network
  14. Lines: 36
  15. Message-ID: <5guv00$1uv@samba.rahul.net>
  16. References: <3331C0E9.54A3@mail.moody.edu>
  17. NNTP-Posting-Host: waltz.rahul.net
  18. NNTP-Posting-User: jadestar
  19. X-Newsreader: TIN [version 1.2 PL2]
  20. Xref: news.columbia.edu comp.protocols.kermit.misc:6788
  21.  
  22. Jim Hickman (jhickman@mail.moody.edu) wrote:
  23. : Need a push with some simple stuff.  Can't find where/how to make a .tak
  24. : file run from the command line in C-Kermit on a HP-UX system.  Know this
  25. : has got to be something simple I just have forgotten in the several
  26. : years since I've worked in a Unix environment.
  27.  
  28.     One way is to create the script (the .tak file) with
  29.     an initial line like:
  30.  
  31. #! /usr/local/ckermit
  32.  
  33.     (or whatever path is appropriate for your installation).
  34.     The #!  must be the first two characters of the file for
  35.     this to work -- usually (under most forms of Unix) any 
  36.     leading spaces, comments or blank lines will cause this
  37.     mechanism to fail).
  38.  
  39.     Then you would make this file executable with a command 
  40.     like:  chmod +x.
  41.  
  42.     This works with most Unix scripting facilities because
  43.     it identifies the file as a text script -- and the 
  44.     file specification after the #! tells the system where to 
  45.     find the interpreter.
  46.  
  47.     Another way is to use a command like:
  48.  
  49.     kermit ./myscript.tak  or kermit ./myscript.ksc
  50.     (to follow the conventions of the trade).
  51.  
  52.     Personally I prefer to just name my scripts with no 
  53.     extension.
  54.  
  55.  
  56. : Thanks - Jim Hickman
  57.